<div class="el-dialog">
    <header class="el-dialog__header">
        <span  class="el-dialog__title">修改友情链接</span>
        <button  data-bs-dismiss="modal" aria-label="Close" class="el-dialog__headerbtn" type="button">
            <i class="el-icon el-dialog__close">
                <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
                    <path fill="currentColor" d="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"></path>
                </svg>
            </i>
        </button>
    </header>
    <!--顶部-->
     <form method="post" onsubmit="return post_add(this,'{:url('edit')}')">
    <div class="el-dialog__body">
        <!--内容-->
       <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">名称</label>
            <div class="col-sm-10">
              <input type="text" name="name" value="{$find.name}" class="form-control" placeholder="请输入网站名称">
            </div>
          </div>   
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">分类</label>
            <div class="col-sm-10">
              <select class="form-select" name="typeid" aria-label="请选择分类">
                    <option label="全部" value="0" {if !$find.typeid}selected=""{/if}>全部</option>
                    <option label="首页" value="1" {if $find.typeid == 1}selected=""{/if}>首页</option>
                    <option label="列表" value="2" {if $find.typeid == 2}selected=""{/if}>列表</option>
                    <option label="内容页" value="3" {if $find.typeid == 3}selected=""{/if}>内容页</option>
                </select>
            </div>
          </div> 
          
           <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">类型</label>
            <div class="col-sm-10">
              <select class="form-select" name="linktype" aria-label="请选择链接类型">
                  <option value="0" {if !$find.linktype}selected=""{/if}>文字链接</option>
                  <option value="1" {if $find.linktype}selected=""{/if}>图片链接</option>
                </select>
            </div>
          </div> 
          
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">地址</label>
            <div class="col-sm-10">
              <input type="text" name="url" value="{$find.url}" class="form-control" placeholder="请输入链接地址">
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">姓名</label>
            <div class="col-sm-10">
              <input type="text" name="username" value="{$find.username}" class="form-control" placeholder="请输入站长姓名">
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">邮箱</label>
            <div class="col-sm-10">
              <input type="text" name="email" value="{$find.email}" class="form-control" placeholder="请输入站长邮箱">
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">Logo</label>
            <div class="col-sm-10 input-group mb-3" style="width: 83.33333333%;">
              <input type="text" name="logo" id="logo" value="{$find.logo}" class="form-control" placeholder="请输入网站Logo">
              <button onclick="qh_open('图片管理','{:url('attachment/add',['name'=>'logo'])}',700,500)" class="el-button el-button--primary" type="button">上传</button>
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">简介</label>
            <div class="col-sm-10">
              <textarea type="text" name="msg" class="form-control" placeholder="请输入简介">{$find.msg}</textarea>
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">排序</label>
            <div class="col-sm-10">
              <input type="number" name="listorder" value="{$find.listorder}" class="form-control" placeholder="请输入排序">
            </div>
          </div> 
          
           <div class="mb-3 row">
            <label class="col-form-label col-sm-2 pt-0">显示</label>
            <div class="col-sm-10 dis-jus">
             <div class="form-check">
                <input class="form-check-input" type="radio" name="status" value="1" id="status" {if $find.status}checked=""{/if}>
                <label class="form-check-label" for="status">
                  是
                </label>
              </div>
              
              <div class="form-check">
                <input class="form-check-input" type="radio" name="status" value="0" id="status1" {if !$find.status}checked=""{/if}>
                <label class="form-check-label" for="status1">
                  否
                </label>
              </div>
              
           </div>
          </div> 
          <input type="hidden" name="__token__" value="{:token()}" />
          <input type="hidden" name="id" value="{$find.id}" />
         <!--内容-->
    </div>
    <!--底部-->
    <footer class="el-dialog__footer">
        <span class="dialog-footer">
            <button  type="button" class="el-button el-button--danger" data-bs-dismiss="modal" aria-label="Close">
                <span class="">取消</span></button>
            <button class="el-button el-button--primary" aria-disabled="false" type="submit">
                <span class="">确认</span></button>
        </span>
    </footer>
    </form>
</div>